﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ComputerizedRehabForms
{
    public partial class LoginForm : Form
    {
        public LoginForm()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void LoginForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void submit_button_Click(object sender, EventArgs e)
        {
            DataManager.hideLogin();
            int test = DataManager.getFormType();
            switch (test)
            {
                case 0:
                    DataManager.showBLBTest();
                    break;
                case 1:
                    DataManager.showMLBTest();
                    break;
                case 2:
                    DataManager.showCLBTest();
                    break;
                default:
                    DataManager.showBLBTest();
                    break;
            }
        }

        private void skip_button_Click(object sender, EventArgs e)
        {
            DataManager.hideLogin();
            int test = DataManager.getFormType();
            switch (test)
            {
                case 0:
                    DataManager.showBLBTest();
                    break;
                case 1:
                    DataManager.showMLBTest();
                    break;
                case 2:
                    DataManager.showBellsTest();
                    break;
                default:
                    DataManager.showBLBTest();
                    break;
            }
        }

        private void back_button_Click(object sender, EventArgs e)
        {
            DataManager.hideLogin();
            DataManager.showIntro();
        }

        private void exit_button_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}
